package com.linln.admin.integral.mall.controller;

import com.github.pagehelper.Page;
import com.linln.common.vo.PageResult;
import com.linln.modules.integralmall.domain.RotationChart;
import com.linln.modules.integralmall.service.RotationChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.admin.integral.mall.controller
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.admin.integral.mall.controller
 * @Description: TODO
 * @date Date : 2020年12月16日 10:49
 */
@RestController
@RequestMapping("rotationChat")
public class RotationChatController {

    @Autowired
    private RotationChartService rotationChartService;

    @GetMapping("/{serviceId}")
    public PageResult<RotationChart> getRotationChatsByServiceId(@PathVariable("serviceId") String serviceId) {
        return new PageResult<>(rotationChartService.getRotationChatsByServiceId(serviceId));
    }
}
